cmake_minimum_required(VERSION 3.0)

project(opencv_project)

find_package(OpenCV 3.4.5 REQUIRED)

include_directories(${OpenCV_INCLUDE_DIRS})

add_executable(opencv_program src/main.cpp)

target_link_libraries(opencv_program ${OpenCV_LIBS})
target_link_libraries(opencv_program ${OpenCV_LIBS} opencv_features2d)
include_directories(/usr/local/include/opencv2/xfeatures2d/xfeatures2d.hpp)